\name{dim}
\alias{dim}
\title{ returns dimensions of an object }
\description{
 Like base version of dim(), but also handles vectors.
}
\usage{
dim(x)
}
\arguments{
  \item{x}{ -- array or vector}
  
}

\value{
  length or dimensions of x}
  
\author{ P Kleiber }
